<template>
  <elm-page-bb class="elm-edit">
    <div>
      <el-card  shadow="hover" style="margin: 0px 0;">
        <div slot="header">
          <span>项目信息</span>
        </div>
        <el-form ref="model" :model="model" size="small" label-width="120px">
          <elm-row>
            <el-form-item label="项目编号">
              <span>{{model.sys_code_key}}</span>
            </el-form-item>
            <el-form-item label="名称">
              <span>{{model.name}}</span>
            </el-form-item>
          </elm-row>
          <elm-row>
            <el-form-item label="项目类型">
              <span>{{model.type_mc}}</span>
            </el-form-item>
            <el-form-item label="项目资金" prop="money">
              <span>{{model.money}} 万元</span>
            </el-form-item>
          </elm-row>
          <elm-row>
            <el-form-item label="所属部门">
              <span>{{model.org_mc}}</span>
            </el-form-item>
            <el-form-item label="项目经理">
              <span>{{model.manager_mc}}</span>
            </el-form-item>
          </elm-row>
          <elm-row>
            <el-form-item label="开工日期">
              <span>{{model.b_sdate}}</span>
            </el-form-item>
            <el-form-item label="承揽人">
              <span>{{model.saler_mc}}</span>
            </el-form-item>
          </elm-row>
          <elm-row>
            <el-form-item label="订单编号">
              <span>{{model.order_key}}</span>
            </el-form-item>
            <el-form-item label="登记人" prop="manager">
              <span>{{model.booker_mc}}</span>
            </el-form-item>
          </elm-row>
          <elm-row>
            <el-form-item label="合同编号">
              <span>{{model.contract_key}}</span>
            </el-form-item>
            <el-form-item></el-form-item>
          </elm-row>
          <el-form-item label="项目概要">
            <span>{{model.description}}</span>
          </el-form-item>
          <el-form-item label="备注">
            <span>{{model.remark}}</span>
          </el-form-item>
        </el-form>
      </el-card>
      <el-card  shadow="hover" style="margin: 10px 0;">
        <div slot="header">
          <span>委托信息</span>
        </div>
        <el-form size="small" label-width="120px">
          <elm-row>
            <el-form-item label="委托单位">
              <span>{{model.a_org}}</span>
            </el-form-item>
            <el-form-item label="委托日期">
              <span>{{model.a_date}}</span>
            </el-form-item>
          </elm-row>
          <elm-row>
            <el-form-item label="联系人">
              <span>{{model.a_user}}</span>
            </el-form-item>
            <el-form-item label="联系方式">
              <span>{{model.a_user_call}}</span>
            </el-form-item>
          </elm-row>
          <el-form-item label="备注及要求">
            <span>{{model.a_remark}}</span>
          </el-form-item>
        </el-form>
      </el-card>
    </div>
    <template #bottom>
      <el-button size="small" @click="close">取消</el-button>
    </template>
  </elm-page-bb>
</template>

<script>
export default {
  extends: elmVueBase,
  data() {
    return {
      pj_id: elm.dialog.request.pj_id,
      model: {},
    }
  },
  created() {
    this.getPjInfo();
  },
  methods: {
    async getPjInfo() {
      let res_info = await elm.post("/business/analysis/cockpit/GetPjInfo", {pj_id: this.pj_id});
      this.model = res_info[0];
    },
  }
}
</script>

<style scoped>
</style>